function CreateChildRelationContextMenu(MouseX, MouseY, ServicePath, ServiceParams, ChildObjClass)
{
	var SvcPath = ServicePath;
	var SvcParams = ServiceParams;
	var ChildObjectClass = ChildObjClass;
	
	
	$('body').append("<ul id='ChildRelationsContextMenu'><li id='WorkWithChildrenContextItem'><a>Work with child models</a></li><li id='PasteModelContextItem'><a>Paste a child model from clipboard</a></li></ul>");	
	$('#ChildRelationsContextMenu').css('position','absolute');
	$('#ChildRelationsContextMenu').css('left',MouseX);
	$('#ChildRelationsContextMenu').css('top',MouseY);
	$('#ChildRelationsContextMenu').css('left',MouseX);
	$('#ChildRelationsContextMenu').css('z-index',1000);
	$('#ChildRelationsContextMenu').mouseleave(function(){$(this).remove();});
	$('#ChildRelationsContextMenu').menu({select:
		function(event, ui)
		{
			if (ui.item.attr('id')=='WorkWithChildrenContextItem')
			{
				NewCrudWindow(SvcPath,SvcParams,ChildObjectClass);
			}
			else if (ui.item.attr('id')=='PasteModelContextItem')
			{
				var ModelToInject = GetModelInClipboard();
				CreateObject(ModelToInject, "svc/crud"+"?"+SvcParams)
			}
			$('#ChildRelationsContextMenu').remove();
		}
		
	});
	
}